package org.example.taobao.demo.good;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.context.ConfigurableApplicationContext;
/**
 * @author zhangxx
 * @date 2022/6/9 8:19 PM
 */
@SpringBootApplication
public class GoodApplication extends SpringBootServletInitializer {

    private static ConfigurableApplicationContext context;

    public static void main(final String[] args) {
        context = SpringApplication.run(GoodApplication.class, args);
    }

    public static void shutdown() {
        context.close();
    }
}
